﻿using _111.Models;
using MyDapperApi.Models;
using QYWXUpdate.DataModel;
using QYWXUpdate.DataModel.Queue;
using QYWXUpdate.DataModel.QYWXDocument;
using System.Xml.Linq;

namespace MyDapperApi.Services.QywxBase;

public interface IQywxBaseService
{
    Task<string> StreamToStringAsync(Stream stream);
    Task<string> GetAccessTokenAsync(string corpId, string secret);
    Task<CommonGetDocDetailResponse<T>> QywxDocumentPost<T>(StringContent request, string url);
    Task<CommonResponse> QywxDocumentPost(StringContent request, string url);
    Task<T> QywxCommonPost<T>(StringContent request, string url) where T : WXResponse, new();
}